import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 原棉管理
 * */
// 创建过磅单-新
export const productionWeighingRecordTwoParentCreate = (params) => postRequest('/production/weighing-record-two-parent/create', params);
export const productionWeighingRecordTwoParentDelete = (params) => deleteRequest('/production/weighing-record-two-parent/delete', params);
export const productionWeighingRecordTwoParentGet = (params) => getRequest('/production/weighing-record-two-parent/get', params);
export const productionWeighingRecordTwoParentPage = (params) => getRequest('/production/weighing-record-two-parent/page', params);

export const productionWeighingRecordTwoParentGetReportForms = (params) => postRequest('/production/weighing-record-two-parent/get-report-forms', params);
export const productionWeighingRecordTwoParentUpdate = (data) => putRequest('/production/weighing-record-two-parent/update', data);
export const productionWeighingRecordTwoParentUpdateAuditState = (params) => postRequest('/production/weighing-record-two-parent/update-audit-state', params);
// 确认过磅单完成状态
export const productionWeighingRecordTwoParentUpdateServiceState = (params) => postRequest('/production/weighing-record-two-parent/update-service-state', params);
// 根据原批查皮重
export const productionWeighingRecordTwoGetOneTare = (params) => getRequest('/production/weighing-record-two/get-one-tare', params);

// 批量创建过磅单-新
export const productionWeighingRecordTwoCreateList = (params) => postRequest('/production/weighing-record-two/create-list', params);

// 确认到货单状态
export const productionWeighingRecordTwoUpdateAuditState = (params) => postRequest('/production/weighing-record-two/update-audit-state', params);

// 获得过磅单-新分页
export const productionWeighingRecordTwoPage = (params) => getRequest('/production/weighing-record-two/page', params);
// 获得过磅单-新
export const productionWeighingRecordTwoGet = (params) => getRequest('/production/weighing-record-two/get', params);
// 删除过磅单-新
export const productionWeighingRecordTwoDelete = (params) => deleteRequest('/production/weighing-record-two/delete', params);

// 更新过磅单-新
export const productionWeighingRecordTwoUpdate = (data) => putRequest('/production/weighing-record-two/update', data);

export const spinMaterialGetByCode = (params) => getRequest('/spin/product/get-by-code', params);
export const spinWorkshopProductBatchPage = (params) => getRequest('/spin/workshop-product-batch/page', params);
export const spinVendorPage = (params) => getRequest('/spin/vendor/page', params);

